<%@ page language="java" contentType="text/html; charset=UTF-8"

    pageEncoding="UTF-8"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>    
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>  
  
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>

    <a href="DepartAddServlet">添加</a>
    <!-- 输出articles table -->
      <table>
        <tr> 
        <td>序号</td>
        <td>Id</td>
        <td>Name</td>
        <td>操作 </td>
        </tr>
      <c:forEach items="${departs }" var="item" varStatus="vs">
      
        <tr> 
        <td>${vs.index+1 }</td>
        <td>${item.id }</td>
        <td>${item.name }</td>
        <td>
           
        </td>
        </tr>
      </c:forEach>
    
      </table>
</body>
</html>